home *** CD-ROM | disk | FTP | other *** search
- Short: Generate random numbers for scripts
- Author: T.Heinrich@t-online.de (Thomas Heinrich)
- Uploader: T.Heinrich@t-online.de (Thomas Heinrich)
- Version: 1.1
- Type: util/cli
- Requires: OS2.04+, MC68000+
- Replaces: Randomizer#?
-
- While I am browsing through the web, I am collecting looots of
- photos of phantastic women. So I really could not decide which
- one to use as the workbench backdrop. Using WBPattern to create
- multiple preferences files was easy, but how get them changed
- after every reboot ?
-
- So I renamed all the prefs as Backdrop.xx, where xx is a number
- from 0 to 197 ;^). But how do I generate a random number in a shell ?
- Finally I quickly wrote a program, which used the system seconds,
- and masked out the lower few bits, being able to use first 16 then
- 32 backdrops.
-
- I was not to satified with that, as it only produced fixed steps
- to use as numbers (16, 32 the next would have been 64). I spent
- half an afternoon, then, to produce this program here: Randomizer !
-
- What it does:
- -------------
- It also reads the seconds from the timer of your Amiga and then
- produces a CONFIGURABLE number of random numbers. For script
- convenience, it stores the number in a local shell variable named
- "RANDOM". So you can access it e.g. by typing
-
- WBPattern Backdrop.$RANDOM USE
-
- This loads a random backdrop picture, given you prepared the prefs
- in the first place.
-
- What YOU should do:
- -------------------
- READ THE DOCS BEFORE USING THE PROGRAM !
-
- To be honest, there are no docs... Search for the file "ReadMeFirst"
- in this distribution, to figure out how to make Randomizer work.
-
- One more, at last: It is FREEWARE ! And it comes with the main part
- of the C source !!!
-
- Have fun,
- Thomas "Hoin" Heinrich.
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 1233 594 51.8% 04-Jul-97 22:21:04 Random.info
- 1736 1241 28.5% 16-Jul-97 21:05:18 +Randomizer
- 2071 968 53.2% 16-Jul-97 21:02:54 +Randomizer.c
- 1718 967 43.7% 16-Jul-97 20:32:52 +Randomizer.readme
- 4066 1979 51.3% 16-Jul-97 20:51:04 +ReadMeFirst
- -------- ------- ----- --------- --------
- 10824 5749 46.8% 20-Jul-97 22:28:18 5 files
-